{extends file="$templateDir/layout/member/layout.tpl"}
{block name=body}
  <div class="container">
      {include file="$templateDir/layout/member/left.tpl"}
      <div class="main_rigth">
			<div class="main_cent">
				<div class="main_title">卡消费</div>
				<div class="main_from">
				<form action="" method="post" id="frm">
					<div class="from_li">
						<div class="from_lable">卡 &nbsp;&nbsp; 号:</div>
						<div class="from_ipt">
							<input type="text" readonly="true" name="cardno" id="cardno"  class="ipt" value="{$data->card_no}">
						</div>
					</div>
					<div class="from_li">
						<div class="from_lable">密 &nbsp;&nbsp; 码:</div>
						<div class="from_ipt">
							<input type="password" name="passwd" id="passwd" class="ipt">
						</div>
					</div>
          <div class="from_li">
            <div class="from_zhje">账户余额</div>
            <div class="from_xfje">消费金额：<span id="xf_sum">0</span></div>
          </div>
					<div class="from_li">
						<div class="from_lable">储值消费:
              <span class="ipt_text">{$data->user_balance}</span>
            </div>
						<div class="from_ipt">
							<input type="text" name="saving_sub" id="saving_sub" class="ipt xf_sum" value="0">
						</div>
					</div>
					<div class="from_li">
						<div class="from_lable">现金消费:</div>
						<div class="from_ipt">
							<input type="text" name="cash" id="cash" class="ipt xf_sum" value="0">
						</div>
					</div>
					<div class="from_li">
						<div class="from_lable">电 子 券:
              {if count($coupondata)>0}
                <span class="coupon_true">{count($coupondata)}张</span>
              {/if}
            </div>
						<div class="from_ipt">
							<input type="text" name="coupon_pwd" id="coupon_pwd" class="ipt">
							
						</div>
					</div>
					<div class="from_li">
						<div class="from_lable">积分支付:
              <span class="ipt_text">{$data->user_point}</span>
            </div>
						<div class="from_ipt">
							<input type="text" name="point_sub" id="point_sub" class="ipt xf_sum" value="0">
						</div>
					</div>
				</form>
				</div>
				<div class="main_bnt">
					<div class="main_bnt_frm">
							<div class="bnt_frm"></div>
              <div class="esc"></div>
					</div>
				</div>
			</div>
      </div>
  </div>
  <div class="hidden_form" id="hidden_form">
  	<div class="hidden_form_top">
  		<div class="hidden_form_top_l">
  			<img src="{$template_url}resources/images/entry/success.jpg">
  		</div>
  		<div class="hidden_form_top_r">
  			<a href="javascript:void(0)">
  				<img src="{$template_url}resources/images/entry/close.jpg">
  			</a>
  		</div>
  	</div>
  	<div class="hidden_form_top_line"></div>
  	<div class="hidden_form_center" id="html_txt">
  		<div class="hidden_form_center_inner">
  			<div class="hidden_form_center_inner_in">
  				<div class="hidden_form_center_inner_in_title">交易凭条</div>
  				<div class="hidden_form_center_inner_in_content">
  					<div class="hidden_form_center_inner_in_content_s">==============商户联==============</div>
  					<div class="hidden_form_center_inner_in_content_s">
  						<div class="hidden_form_center_inner_in_content_s_l">交易类型：</div>
  						<div class="hidden_form_center_inner_in_content_s_r">卡消费</div>
  					</div>
  					<div class="hidden_form_center_inner_in_content_s">
  						<div class="hidden_form_center_inner_in_content_s_l">交易门店：</div>
  						<div class="hidden_form_center_inner_in_content_s_r">{$member->ename}</div>
  					</div>
  					<div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">终端编号：</div>
              <div class="hidden_form_center_inner_in_content_s_r">{$store_id}</div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">卡号：</div>
              <div class="hidden_form_center_inner_in_content_s_r">{$data->card_no}</div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">交易批次号：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="batch_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">终端流水号：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="traceon_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">交易参考号：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="invoiceid_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">交易日期：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="date_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">交易时间：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="time_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">交易金额：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="sum_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">现金支付：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="cash_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">储值支付：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="saving_sub_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">积分支付：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="point_sub_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">券支付：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="coupon_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">储值余额：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="balance_show"></div>
            </div>
            <div class="hidden_form_center_inner_in_content_s">
              <div class="hidden_form_center_inner_in_content_s_l">积分余额：</div>
              <div class="hidden_form_center_inner_in_content_s_r" id="point_show"></div>
            </div>
  				</div>
  			</div>
  		</div>
  	</div>
  	<div class="hidden_form_top_line"></div>
  	<div class="hidden_form_bottom">
  		<div class="commit_btn">
  			<!-- <img src="{$template_url}resources/images/entry/commit_btn.jpg"> -->
        <div class="sendwx">发送微信</div>
        <div class="sendSms">发送短信</div>
  		</div>
  	</div>
  </div>
{/block}
